package com.company.cloud.customer.modules.api.service;

import java.util.List;

import com.company.cloud.common.bean.BaseClientResult;
import com.company.cloud.customer.modules.api.fallback.CustomerRemoteServiceFallbackFactory;
import com.company.common.server.constant.ServiceNameConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.company.cloud.customer.modules.api.response.AddrResponse;


@FeignClient(contextId = "customer1", name = ServiceNameConstant.user_center, fallbackFactory = CustomerRemoteServiceFallbackFactory.class)
public interface CustomerRemoteService {

	@GetMapping(value = "/remote/customer/addrList")
	public BaseClientResult<List<AddrResponse>> getAddrList(@RequestParam("userId") Integer userId);

	@GetMapping(value = "/remote/customer/addrById")
	public BaseClientResult<AddrResponse> getAddrById(@RequestParam("id") Integer id);

}
